package com.atguigu.gmall.activity.client;


import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "service-activity")
public interface SeckillGoodsFeignClient {

    //查询
    @GetMapping("/api/activity/seckill/getSeckillList")
    public List<SeckillGoods> getSeckillList();
    @GetMapping("/api/activity/seckill/getSeckillGoods/{skuId}")
    public SeckillGoods getSecKillGoodsById(@PathVariable(name = "skuId") Long skuId);
}
